Holds information about the composition of a mesh : the data it offers. More...
Public Member Functions | |
| VertexComposition () | |
| VertexComposition (bool position, bool color, bool uv, bool normal, bool tangent, bool binormal) | |
| ~VertexComposition () | |
| unsigned short | getAsShort () const |
| std::string | getAsString () const |
| const InfiniteByteMask & | getAsMask () const |
| unsigned short | getAttributeNumber () const |
| unsigned short | getTotalComponentNumber () const |
| unsigned short | getTotalByteSize () const |
| unsigned short | getVertexPerPrimitive () const |
| unsigned short | getComponentPerFormat (FORMAT format) const |
| void | refreshBitMask () |
| bool | operator== (const VertexComposition &other) const |
| bool | operator< (const VertexComposition &other) const |
Public Attributes | |
| FORMAT | _positionFormat |
| The format of positions. | |
| FORMAT | _colorFormat |
| The format of colors. | |
| FORMAT | _uvFormat |
| The format of texture coordinates. | |
| FORMAT | _normalFormat |
| The format of normals. | |
| FORMAT | _tangentFormat |
| The format of tangents. | |
| FORMAT | _binormalFormat |
| The format of binormals. | |
| PRIMITIVE_TOPOLOGY | _topology |
| The topology of the mesh. | |
| bool | _position |
| Wether the mesh exposes positions. | |
| bool | _color |
| Wether the mesh exposes colors. | |
| bool | _uv |
| Wether the mesh exposes texture coordinates. | |
| bool | _normal |
| Wether the mesh exposes normals. | |
| bool | _tangent |
| Wether the mesh exposes tangents. | |
| bool | _binormal |
| Wether the mesh exposes binormals. | |
Holds information about the composition of a mesh : the data it offers.
| nkGraphics::VertexComposition::VertexComposition | ( | ) |
Default constructor.
| nkGraphics::VertexComposition::VertexComposition | ( | bool | position, |
| bool | color, | ||
| bool | uv, | ||
| bool | normal, | ||
| bool | tangent, | ||
| bool | binormal | ||
| ) |
Filling constructor.
| position | If the composition exposes positions. |
| color | If the composition exposes colors. |
| uv | If the composition exposes uvs. |
| normal | If the composition exposes normals. |
| tangent | If the composition exposes tangents. |
| binormal | If the composition exposes binormals. |
| nkGraphics::VertexComposition::~VertexComposition | ( | ) |
Destructor.
| unsigned short nkGraphics::VertexComposition::getAsShort | ( | ) | const |
| std::string nkGraphics::VertexComposition::getAsString | ( | ) | const |
| const InfiniteByteMask& nkGraphics::VertexComposition::getAsMask | ( | ) | const |
| unsigned short nkGraphics::VertexComposition::getAttributeNumber | ( | ) | const |
| unsigned short nkGraphics::VertexComposition::getTotalComponentNumber | ( | ) | const |
| unsigned short nkGraphics::VertexComposition::getTotalByteSize | ( | ) | const |
| unsigned short nkGraphics::VertexComposition::getVertexPerPrimitive | ( | ) | const |
| unsigned short nkGraphics::VertexComposition::getComponentPerFormat | ( | FORMAT | format | ) | const |
| void nkGraphics::VertexComposition::refreshBitMask | ( | ) |
Refreshes the bit mask. Updated when a mesh is loading, used for layout tracking.
| bool nkGraphics::VertexComposition::operator== | ( | const VertexComposition & | other | ) | const |
Equality operator.
| other | The composition to compare with. |
| bool nkGraphics::VertexComposition::operator< | ( | const VertexComposition & | other | ) | const |
Less than operator.
| other | The composition to compare with. |